package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.pojo.Dish;

public interface DishService extends IService<Dish> {

    //新增菜品,同时插入口味数据
    void saveWithFlavor(DishDto dishDto);

    DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);

//    void deleteWithFlavor(Long id);

    void deleteWithFlavorBatch(Long[] ids);
}
